Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental support for git dependencies #151

Merged
merged 19 commits into from
Dec 1, 2019
Merged

Experimental support for git dependencies #151

merged 19 commits into from
Dec 1, 2019

Conversation

nmattia
Copy link
Owner

@nmattia nmattia commented Nov 30, 2019

This adds experimental support for git repositories, fetched through builtins.fetchGit.

$ niv add git https://github.com/nmattia/niv

CC @NinjaTrappeur

@nmattia nmattia marked this pull request as ready for review November 30, 2019 15:39
src/Niv/Cli.hs Outdated Show resolved Hide resolved
src/Niv/Git/Cmd.hs Show resolved Hide resolved
-> T.Text -- ^ the ref/branch
-> IO T.Text
latestRev repo ref = do
let gitArgs = [ "ls-remote", repo, "refs/heads/" <> ref ]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably limit the number of lines we read from git; ls-remote can print a sh*tton of stuff

src/Niv/Git/Cmd.hs Outdated Show resolved Hide resolved
@nmattia nmattia merged commit 32fe489 into master Dec 1, 2019
@nmattia nmattia deleted the nm-split-updates branch December 1, 2019 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant